ChatLog

@Serializable
data class ChatLog(var id: String? = null, var logType: ChatBranch? = null, var content: List<ChatMessage> = listOf(), var createdAt: Date? = null, var toBeCompleted: Date? = null)

Represents a log of a chat activity or interaction. This contains a list of user messages, the chat branch type, and metadata like creation time and completion date. The chatbot's responses are not stored in the logs to save memory, as they are inferred from the log type.

Constructors

Link copied to clipboard
constructor(id: String? = null, logType: ChatBranch? = null, content: List<ChatMessage> = listOf(), createdAt: Date? = null, toBeCompleted: Date? = null)

Properties

Link copied to clipboard

The list of messages from the user.

Link copied to clipboard
@Serializable(with = DateSerializer::class)
var createdAt: Date?

The timestamp when the chat log was created.

Link copied to clipboard
var id: String?

The unique identifier for this chat log.

Link copied to clipboard

The type of chat branch, determining the flow of the conversation.

Link copied to clipboard
@Serializable(with = DateSerializer::class)
var toBeCompleted: Date?

The date when this chat log is expected to be completed.